home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-1.iso / Files / Internet / Misc / TR Enet LAP 1.0.sit / RawIP.h next >
MacBinary  |  1994-07-23  |  2.1 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: RawIP.h

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Sat Jul 23 17:50:54 1994, modified Sat Jul 23 17:50:54 1994, creator Think C, type ASCII, 1437 bytes "RawIP.h" magic text fragment for file(1) cmd, 1st line "#include <MacTCPCommonTypes.h>", 2nd line "#include <MiscIPPB.h>", 3rd line "", 4th line "", 5th line "typedef struct {", at 0x61d 428 bytes resource magic text fragment for file(1) cmd, 1st line "#include <MacTCPCommonTypes.h>", 2nd line "#include <MiscIPPB.h>", 3rd line "", 4th line "", 5th line "typedef struct {" default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 07 52 61 77 49 50 2e | 68 00 00 00 00 00 00 00 |..RawIP.|h.......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 05 9d 00 | 00 01 ac aa 57 41 3e aa |........|....WA>.|
|00000060| 57 41 3e 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |WA>.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 11 72 00 00 |........|.....r..|
|00000080| 23 69 6e 63 6c 75 64 65 | 20 3c 4d 61 63 54 43 50 |#include| <MacTCP|
|00000090| 43 6f 6d 6d 6f 6e 54 79 | 70 65 73 2e 68 3e 0d 23 |CommonTy|pes.h>.#|
|000000a0| 69 6e 63 6c 75 64 65 20 | 3c 4d 69 73 63 49 50 50 |include |<MiscIPP|
|000000b0| 42 2e 68 3e 0d 0d 0d 74 | 79 70 65 64 65 66 20 73 |B.h>...t|ypedef s|
|000000c0| 74 72 75 63 74 20 7b 0d | 09 43 6e 74 72 6c 50 61 |truct {.|.CntrlPa|
|000000d0| 72 61 6d 09 09 69 6f 70 | 3b 09 09 09 09 2f 2a 20 |ram..iop|;..../* |
|000000e0| 4d 41 43 20 4f 53 20 49 | 2f 4f 20 50 61 72 61 6d |MAC OS I|/O Param|
|000000f0| 20 62 6c 6f 63 6b 20 2a | 2f 0d 09 73 74 72 75 63 | block *|/..struc|
|00000100| 74 20 78 20 7b 0d 09 09 | 75 6e 73 69 67 6e 65 64 |t x {...|unsigned|
|00000110| 20 6c 6f 6e 67 20 72 65 | 73 65 72 76 65 64 61 3b | long re|serveda;|
|00000120| 0d 09 09 75 6e 73 69 67 | 6e 65 64 20 6c 6f 6e 67 |...unsig|ned long|
|00000130| 20 72 65 73 65 72 76 65 | 64 62 3b 0d 09 09 73 74 | reserve|db;...st|
|00000140| 72 75 63 74 20 72 64 73 | 45 6e 74 72 79 20 72 65 |ruct rds|Entry re|
|00000150| 73 65 72 76 65 64 63 3b | 0d 09 09 50 74 72 20 72 |servedc;|...Ptr r|
|00000160| 65 73 65 72 76 65 64 64 | 3b 0d 09 09 75 6e 73 69 |eservedd|;...unsi|
|00000170| 67 6e 65 64 20 6c 6f 6e | 67 20 72 65 73 65 72 76 |gned lon|g reserv|
|00000180| 65 64 65 3b 0d 09 09 7d | 20 72 61 3b 0d 09 50 74 |ede;...}| ra;..Pt|
|00000190| 72 09 09 09 09 72 65 73 | 65 72 76 65 64 32 3b 0d |r....res|erved2;.|
|000001a0| 09 50 74 72 09 09 09 09 | 72 65 73 65 72 76 65 64 |.Ptr....|reserved|
|000001b0| 33 3b 0d 09 50 72 6f 63 | 50 74 72 09 09 09 72 65 |3;..Proc|Ptr...re|
|000001c0| 73 65 72 76 65 64 34 5b | 33 5d 3b 0d 09 6c 6f 6e |served4[|3];..lon|
|000001d0| 67 09 09 09 75 73 65 72 | 41 35 3b 0d 09 73 74 72 |g...user|A5;..str|
|000001e0| 75 63 74 20 77 64 73 45 | 6e 74 72 79 20 72 65 73 |uct wdsE|ntry res|
|000001f0| 65 72 76 65 64 35 3b 0d | 09 73 74 72 75 63 74 20 |erved5;.|.struct |
|00000200| 77 64 73 45 6e 74 72 79 | 09 69 70 3b 0d 09 73 74 |wdsEntry|.ip;..st|
|00000210| 72 75 63 74 20 77 64 73 | 45 6e 74 72 79 09 72 65 |ruct wds|Entry.re|
|00000220| 73 65 72 76 65 64 36 5b | 36 5d 3b 0d 09 73 68 6f |served6[|6];..sho|
|00000230| 72 74 09 09 09 72 65 73 | 65 72 76 65 64 37 3b 0d |rt...res|erved7;.|
|00000240| 09 7d 20 52 61 77 57 72 | 69 74 65 50 61 72 61 6d |.} RawWr|iteParam|
|00000250| 3b 0d 0d 74 79 70 65 64 | 65 66 09 73 74 72 75 63 |;..typed|ef.struc|
|00000260| 74 20 7b 0d 09 50 74 72 | 09 09 49 50 64 61 74 61 |t {..Ptr|..IPdata|
|00000270| 3b 0d 09 73 68 6f 72 74 | 09 6c 65 6e 67 74 68 3b |;..short|.length;|
|00000280| 0d 09 50 74 72 09 09 75 | 73 65 72 31 3b 0d 09 50 |..Ptr..u|ser1;..P|
|00000290| 74 72 09 09 75 73 65 72 | 32 3b 0d 09 7d 20 52 61 |tr..user|2;..} Ra|
|000002a0| 77 46 69 6c 74 65 72 50 | 61 72 61 6d 3b 0d 09 0d |wFilterP|aram;...|
|000002b0| 0d 2f 2f 20 53 68 6f 75 | 6c 64 20 73 65 74 20 6f |.// Shou|ld set o|
|000002c0| 6e 6c 79 3a 0d 2f 2f 09 | 69 6f 70 2e 69 6f 43 6f |nly:.//.|iop.ioCo|
|000002d0| 6d 70 6c 65 74 69 6f 6e | 09 3d 20 43 6f 6d 70 6c |mpletion|.= Compl|
|000002e0| 65 74 69 6f 6e 20 72 6f | 75 74 69 6e 65 0d 2f 2f |etion ro|utine.//|
|000002f0| 09 69 70 2e 70 74 72 09 | 09 09 09 3d 20 70 6f 69 |.ip.ptr.|...= poi|
|00000300| 6e 74 65 72 20 74 6f 20 | 49 50 20 70 61 63 6b 65 |nter to |IP packe|
|00000310| 74 0d 2f 2f 09 69 70 2e | 6c 65 6e 67 74 68 09 09 |t.//.ip.|length..|
|00000320| 09 3d 20 6c 65 6e 67 74 | 68 20 6f 66 20 49 50 20 |.= lengt|h of IP |
|00000330| 70 61 63 6b 65 74 0d 2f | 2f 09 75 73 65 72 41 35 |packet./|/.userA5|
|00000340| 09 09 09 09 3d 20 55 73 | 65 72 27 73 20 41 35 0d |....= Us|er's A5.|
|00000350| 0d 2f 2f 20 43 61 6e 20 | 6c 6f 6f 6b 20 61 74 3a |.// Can |look at:|
|00000360| 0d 2f 2f 09 69 6f 70 2e | 69 6f 52 65 73 75 6c 74 |.//.iop.|ioResult|
|00000370| 09 09 3d 20 45 72 72 6f | 72 0d 0d 2f 2f 4f 53 45 |..= Erro|r..//OSE|
|00000380| 72 72 09 52 61 77 49 50 | 57 72 69 74 65 28 52 61 |rr.RawIP|Write(Ra|
|00000390| 77 57 72 69 74 65 50 61 | 72 61 6d 20 2a 70 61 72 |wWritePa|ram *par|
|000003a0| 61 6d 73 29 3b 0d 0d 74 | 79 70 65 64 65 66 20 4f |ams);..t|ypedef O|
|000003b0| 53 45 72 72 09 28 2a 52 | 61 77 57 72 69 74 65 50 |SErr.(*R|awWriteP|
|000003c0| 72 6f 63 50 74 72 29 28 | 52 61 77 57 72 69 74 65 |rocPtr)(|RawWrite|
|000003d0| 50 61 72 61 6d 20 2a 29 | 3b 0d 74 79 70 65 64 65 |Param *)|;.typede|
|000003e0| 66 09 42 6f 6f 6c 65 61 | 6e 09 28 2a 52 61 77 49 |f.Boolea|n.(*RawI|
|000003f0| 50 46 69 6c 74 65 72 50 | 72 6f 63 50 74 72 29 28 |PFilterP|rocPtr)(|
|00000400| 52 61 77 46 69 6c 74 65 | 72 50 61 72 61 6d 20 2a |RawFilte|rParam *|
|00000410| 29 3b 0d 0d 65 6e 75 6d | 20 7b 0d 09 6b 48 61 76 |);..enum| {..kHav|
|00000420| 65 52 49 50 46 69 6c 74 | 65 72 20 3d 20 30 78 30 |eRIPFilt|er = 0x0|
|00000430| 31 2c 0d 09 6b 48 61 76 | 65 52 49 50 57 72 69 74 |1,..kHav|eRIPWrit|
|00000440| 65 20 3d 20 30 78 30 32 | 0d 09 7d 3b 0d 09 0d 74 |e = 0x02|..};...t|
|00000450| 79 70 65 64 65 66 20 73 | 74 72 75 63 74 20 7b 0d |ypedef s|truct {.|
|00000460| 09 73 68 6f 72 74 09 09 | 76 65 72 73 69 6f 6e 3b |.short..|version;|
|00000470| 09 09 09 09 2f 2f 20 56 | 65 72 73 69 6f 6e 20 6f |....// V|ersion o|
|00000480| 66 20 69 6e 74 65 72 66 | 61 63 65 0d 09 73 68 6f |f interf|ace..sho|
|00000490| 72 74 09 09 61 76 61 69 | 6c 46 6c 61 67 73 3b 09 |rt..avai|lFlags;.|
|000004a0| 09 09 09 2f 2f 20 57 68 | 61 74 20 69 73 20 61 76 |...// Wh|at is av|
|000004b0| 61 69 6c 61 62 6c 65 0d | 09 52 61 77 57 72 69 74 |ailable.|.RawWrit|
|000004c0| 65 50 72 6f 63 50 74 72 | 09 09 52 61 77 49 50 57 |eProcPtr|..RawIPW|
|000004d0| 72 69 74 65 3b 09 09 2f | 2f 20 52 61 77 20 49 50 |rite;../|/ Raw IP|
|000004e0| 20 57 72 69 74 65 20 72 | 6f 75 74 69 6e 65 20 61 | Write r|outine a|
|000004f0| 64 64 72 65 73 73 0d 09 | 52 61 77 49 50 46 69 6c |ddress..|RawIPFil|
|00000500| 74 65 72 50 72 6f 63 50 | 74 72 09 52 61 77 49 50 |terProcP|tr.RawIP|
|00000510| 46 69 6c 74 65 72 3b 09 | 2f 2f 20 52 61 77 20 49 |Filter;.|// Raw I|
|00000520| 50 20 46 69 6c 74 65 72 | 20 72 6f 75 74 69 6e 65 |P Filter| routine|
|00000530| 20 61 64 64 72 65 73 73 | 0d 09 73 68 6f 72 74 09 | address|..short.|
|00000540| 09 75 73 65 46 69 6c 74 | 65 72 3b 09 09 09 09 2f |.useFilt|er;..../|
|00000550| 2f 20 4e 6f 6e 2d 7a 65 | 72 6f 20 69 66 20 66 69 |/ Non-ze|ro if fi|
|00000560| 6c 74 65 72 20 72 6f 75 | 74 69 6e 65 20 69 73 20 |lter rou|tine is |
|00000570| 74 6f 20 62 65 20 63 61 | 6c 6c 65 64 0d 09 50 74 |to be ca|lled..Pt|
|00000580| 72 09 09 09 75 73 65 72 | 31 3b 09 09 09 09 09 2f |r...user|1;...../|
|00000590| 2f 20 50 61 73 73 65 64 | 20 74 6f 20 46 69 6c 74 |/ Passed| to Filt|
|000005a0| 65 72 20 72 6f 75 74 69 | 6e 65 0d 09 50 74 72 09 |er routi|ne..Ptr.|
|000005b0| 09 09 75 73 65 72 32 3b | 09 09 09 09 09 2f 2f 20 |..user2;|.....// |
|000005c0| 50 61 73 73 65 64 20 74 | 6f 20 46 69 6c 74 65 72 |Passed t|o Filter|
|000005d0| 20 72 6f 75 74 69 6e 65 | 0d 09 50 72 6f 63 50 74 | routine|..ProcPt|
|000005e0| 72 09 09 72 65 73 65 72 | 76 65 64 31 3b 0d 09 6c |r..reser|ved1;..l|
|000005f0| 6f 6e 67 09 09 72 65 73 | 65 72 76 65 64 32 5b 31 |ong..res|erved2[1|
|00000600| 30 5d 3b 0d 09 7d 20 52 | 61 77 49 50 47 65 73 74 |0];..} R|awIPGest|
|00000610| 61 6c 74 53 74 72 75 63 | 74 3b 0d 09 0d 00 00 00 |altStruc|t;......|
|00000620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000680| 00 00 01 00 00 00 01 6e | 00 00 00 6e 00 00 00 3e |.......n|...n...>|
|00000690| 74 4c 6f 63 6b 3b 09 09 | 09 2f 2a 20 74 72 75 65 |tLock;..|./* true|
|000006a0| 20 2d 20 6c 6f 63 6b 20 | 73 75 62 6e 65 74 20 6e | - lock |subnet n|
|000006b0| 07 52 61 77 49 50 2e 68 | 02 00 00 00 50 61 72 74 |.RawIP.h|....Part|
|000006c0| 53 49 54 78 00 00 00 00 | 00 00 00 00 00 00 c0 8f |SITx....|........|
|000006d0| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006f0| 00 00 aa d5 5b 48 00 00 | 00 00 00 00 01 ac 3b 09 |....[H..|......;.|
|00000700| 09 09 2f 2a 20 66 69 6c | 6c 65 72 20 2a 2f 0d 09 |../* fil|ler */..|
|00000710| 69 6e 74 20 09 09 61 63 | 74 69 76 65 4c 61 70 3b |int ..ac|tiveLap;|
|00000720| 09 09 09 2f 2a 20 69 6e | 64 65 78 20 6f 66 20 4c |.../* in|dex of L|
|00000730| 41 50 20 69 6e 20 61 20 | 6d 75 6c 74 69 2d 4c 41 |AP in a |multi-LA|
|00000740| 50 20 66 69 6c 65 20 2a | 2f 0d 09 09 09 09 09 09 |P file *|/.......|
|00000750| 09 09 09 2f 2a 20 66 6f | 72 20 62 75 69 6c 74 2d |.../* fo|r built-|
|00000760| 69 6e 2c 20 31 32 38 20 | 2d 20 41 70 70 6c 65 54 |in, 128 |- AppleT|
|00000770| 61 6c 6b 2c 20 31 32 39 | 20 2d 20 45 74 68 65 72 |alk, 129| - Ether|
|00000780| 00 00 00 1e 00 78 00 18 | 02 6d 02 fd 00 78 00 18 |.....x..|.m...x..|
|00000790| 02 6d 02 fd 00 00 00 00 | 00 00 00 00 00 00 00 00 |.m......|........|
|000007a0| 00 00 00 00 00 48 00 09 | 4d 6f 6e 61 63 6f 00 00 |.....H..|Monaco..|
|000007b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007c0| 00 00 00 00 00 00 00 00 | 00 06 00 04 00 2a 00 03 |........|.....*..|
|000007d0| 02 6d 03 3d 00 36 fc a5 | 02 2b ff 8a aa 56 fa ee |.m.=.6..|.+...V..|
|000007e0| 00 00 01 04 00 00 01 04 | 00 00 00 00 00 00 00 00 |........|........|
|000007f0| 01 00 00 00 01 6e 00 00 | 00 6e 00 00 00 3e 00 dd |.....n..|.n...>..|
|00000800| 9e 00 0f 6e 00 00 00 1c | 00 3e 00 00 4d 50 53 52 |...n....|.>..MPSR|
|00000810| 00 01 00 0a 03 f0 ff ff | 00 00 00 00 00 00 00 00 |........|........|
|00000820| 03 ed ff ff 00 00 00 22 | 00 dd 9c d0 00 00 00 00 |......."|........|
|00000830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+